#!/opt/anaconda3/bin/python
# -*- coding:utf-8 -*-
'''
@project : meiguo_mall
@author  : leftxxk
#@file   : urls.py
#@time   : 2021-05-31 23:36:34
'''
from django.urls import path

from apps.users.views import EmailView
from apps.users.views import UsernameCountView, Register, LoginView, LogoutView, CenterView
from apps .users.views import EmailVerifyView
urlpatterns = [
    # 判断用户名是否重复
    # 不符合 会返回404页面
    # 转换器需要在主文件夹的urls中进行注册
    path('usernames/<username:username>/count/', UsernameCountView.as_view()),
    path('register/', Register.as_view()),
    path('login/', LoginView.as_view()),
    path('logout/', LogoutView.as_view()),
    path('info/', CenterView.as_view()),
    path('emails/', EmailView.as_view()),
    path('emails/verification/',EmailVerifyView.as_view())

]
